﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AccountingLibrary
{
  public abstract class JournalCollectionBase : List<JournalEntityBase>
    {
      public void get_journals(AccountBase account)
      {
          this.Clear();
          this.AddRange(get_journal_ab(account));
      }
       protected abstract List<JournalEntityBase> get_journal_ab(AccountBase account);
       public void get_journals(AccountBase account, DateTime from, DateTime to)
       {
           this.Clear();
           this.AddRange(get_journal_ab(account,from,to));
       }
       protected abstract List<JournalEntityBase> get_journal_ab(AccountBase account, DateTime from, DateTime to);
       public void get_all()
       {
           this.Clear();
           this.AddRange(get_journal_ab());
       }
       protected abstract List<JournalEntityBase> get_journal_ab();
       public bool AddJournal(JournalEntityBase journal)
       {

       }
    }
}
